package com.base.mapper.voipmapper;

import com.base.po.voip.TourOrder;
import com.base.po.voip.TourOrderExample;
import java.util.List;

import com.base.utils.Page;
import org.apache.ibatis.annotations.Param;

public interface TourOrderMapper {
    int countByExample(TourOrderExample example);

    int deleteByExample(TourOrderExample example);

    int deleteByPrimaryKey(String orderid);

    int insert(TourOrder record);

    int insertSelective(TourOrder record);

    List<TourOrder> selectByExample(TourOrderExample example);

    List<TourOrder> selectByAll(@Param("page") Page page, @Param("parentid") String parentid,
                                    @Param("shopid") String shopid, @Param("mobile") String mobile,
                                    @Param("ordernum") String ordernum, @Param("goodstext") String goodstext,
                                    @Param("status") Byte status, @Param("deliverystatus") Byte deliverystatus,
                                    @Param("supplier") String supplier, @Param("createtime") String createtime, @Param("role") int role);

    TourOrder selectByPrimaryKey(String orderid);

    int updateByExampleSelective(@Param("record") TourOrder record, @Param("example") TourOrderExample example);

    int updateByExample(@Param("record") TourOrder record, @Param("example") TourOrderExample example);

    int updateByPrimaryKeySelective(TourOrder record);

    int updateByPrimaryKey(TourOrder record);

    int countByAll(@Param("parentid") String parentid, @Param("shopid") String shopid,
                   @Param("mobile") String mobile, @Param("ordernum") String ordernum,
                   @Param("goodstext") String goodstext, @Param("status") Byte status,
                   @Param("deliverystatus") Byte deliverystatus,
                   @Param("supplier") String supplier, @Param("createtime") String createtime,@Param("role") int role);
}